package com.wzy.java;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class test11_dateForMater {
    private static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");

    public static void main(String[] args) {
        LocalDate resultTime = LocalDate.parse("20211010", DATE_TIME_FORMATTER);
        System.out.println(resultTime);
    }
}
